package org.shiro.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.shiro.model.User;

public interface UserMapper {

	@Select("select * from user WHERE username=#{name}")
	User queryByname(@Param("name") String name);

	int deleteByPrimaryKey(Integer uid);

	int insert(User record);

	int insertSelective(User record);

	User selectByPrimaryKey(Integer uid);

	int updateByPrimaryKeySelective(User record);

	int updateByPrimaryKey(User record);
}